<!DOCTYPE html>
<!-- saved from url=(0221)file:///C:/Users/HP/AppData/Local/Temp/%7B4D7C6D40-ED9D-4AC6-AFAA-F31742EDBFE5%7D/%7BEA9B5FFA-202B-4677-B699-081B051ED09B%7D/%E8%A1%A8%E5%8D%95_%E5%A4%8D%E9%80%89%E6%A1%86%E5%92%8C%E5%8D%95%E9%80%89%E6%8C%89%E9%92%AE.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<title>表单_复选框和单选按钮</title>
	</head>
	<body>
		<form name="form1">
			<p>
				选择计算机部件
			</p>
			<p>
				<label for="chkDVD">DVD-ROM</label>
				<input type="checkbox" id="chkDVD" name="chkDVD" value="DVD-ROM">
			</p>
			<p>
				<label for="chkBluRay">Blu-Ray</label>
				<input type="checkbox" id="chkBluRay" name="chkBluRay" value="Blu-Ray">
			</p>
			<p>
				选择处理器速度
			</p>
			<p>
				<input type="radio" name="radCpuSpeed" checked="checked" value="3.2 ghz">
				<label>3.2 GHZ</label>
				<input type="radio" name="radCpuSpeed" value="3.7 ghz">
				<label>3.7 GHZ</label>
				<input type="radio" name="radCpuSpeed" value="4.0 ghz">
				<label>4.0 GHZ</label>
			</p>
			<input type="button" name="btnCheck" value="Check Form">
		</form>
		<script>
			function saveStorage(json1){
            var item = sessionStorage.getItem('desc');
            var date=[];
            if((item==undefined)||(item==null)) date=[];
            else date=JSON.parse(item);
            date.push(json1);
            console.log(JSON.stringify(date));
            sessionStorage.setItem("desc",JSON.stringify(date));
        }
		</script>
	

</body></html>